const BaseService = require('./BaseService.js');

class StuInfoServise extends BaseService {
  constructor() {
    super();
    this.currentTableName = this.tableMap.stu_info;
  }
  getStuListByName({ stu_name }) {
    let strSql = ` select * from ${this.currentTableName} where 1 `;
    let ps = [];
    if (stu_name) {
      strSql += ` and sname like ? `;
      ps.push(`%${stu_name}%`);
    }
    return this.executeSql(strSql, ps);
  }
}

module.exports = StuInfoServise;
